package cn.t16.ms.feign.order;

import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IOrderService {
    Order get(Integer id);

    @Transactional
    Order add(Order order);

    List<Order> getAll();
    List<Order> findByUserId(Integer userId);
}
